import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login.vue"), 
  },
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/Home.vue"),
  },
  {
    path: "/plan",
    name: "Plan",
    component: () =>import("@/views/plan/Plan.vue"),
  },
  {
    path: "/model",
    name: "Plan",
    component: () =>import("@/views/plan/model/Model.vue"),
  },
  {
    path: "/plan",
    name: "Plan",
    component: () =>import("@/views/plan/Plan.vue"),
  },
  {
    path: "/plan",
    name: "Plan",
    component: () =>import("@/views/plan/Plan.vue"),
  },
  {
    path: "/plant",
    name: "Plant",
    component: () =>import("@/views/plant/Plant.vue"),
  },
  {
    path: "/resource",
    name: "Resource",
    component: () =>import("@/views/resource/Resource.vue"),
  },
  {
    path: "/production",
    name: "Production",
    component: () =>import("@/views/production/Production.vue"),
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
